package core.schedule.snake.schedule.core;

import core.schedule.snake.schedule.job.DSFALoopTaskJob;


public class QuartzImpl implements SchedulerInterface {

	public void execute(final TaskInfo taskInfo) {
		try {
			CronTriggerRunner cronTriggerRunner = new CronTriggerRunner();
			cronTriggerRunner.task(new DSFALoopTaskJob(taskInfo), taskInfo.getCronExpression());
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
